﻿Imports FluentNHibernate.Mapping

Public Class CustomerMap
    Inherits ClassMap(Of nHibernate.Models.CustomerModel)

    Public Sub New()
        '### Properties ###'
        Id(Function(x) x.CustomerID)
        Map(Function(x) x.IsCompany)
        Map(Function(x) x.Preisgruppe)
        Map(Function(x) x.DisplayName)

        '### References ###'
        References(Function(x) x.PaymentMethode)
        References(Function(x) x.Contact)
        References(Function(x) x.Address)
        HasMany(Function(x) x.Addresses)
    End Sub
End Class
